<template>
  <div>
    分数:{{a}}
    分数:{{b}}
    <br>

    分数:{{getTotal()}}
  </div>
</template>

<script>
export default {
  name: 'VueDemoApp',

  data() {
    return {
      a:10,
      b:10
    };
  },

  mounted() {
    
  },

  methods: {
    getTotal(){
      console.log('我是getTotal')
      return this.a+this.b
    }
  },
  conputed:{
    totalScore(){
      console.log('我是totalScore');
      return this.a+this.b
    }
  }
};
</script>

<style lang="scss" scoped>

</style>